﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="BookWarehousing.aspx.cs" Inherits="TeachingManageSystem.Web.Warehouse.BookWarehousing" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="~/Styles/AddBook.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    	
    	  .divimg 
    	  {
    	  	position: absolute;
    	  	left: 840px;
    	  	top: 170px;
        }
          h2
        {
            margin-top: 10px;
            margin-bottom: 5px;
            text-align: center;
            line-height: 20px;
        }
          .divtext
        {
            float: left;
            width: 340px;
        	padding-left: 50px;
        }
          .style2
        {
            width: 75px;
        	font-size: 14px;
        }
          .btnAdd {

        	margin-right:  50px;
        	width: 60px;
        	height: 25px;
        }
         .btnCancle {
        	width: 60px;
        	height: 25px;
        }
         .WatermarkText {
        	font-size: 12px;
        	color: red;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
                <asp:ScriptManager ID="ScriptManager1" runat="server" ScriptMode="Inherit">
                </asp:ScriptManager>
   <div style="float: left; margin-top: 0px; background:  #EEF2FB;width: 777px; text-align: left;">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="17" valign="top" background="page/images/mail_leftbg.gif">
                    <img src="page/images/left-top-right.gif" width="17" height="29" alt="" />
                </td>
                <td valign="top" background="page/images/content-bg.gif">
                    <table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg"
                        id="table2">
                        <tr>
                            <td height="31">
                                <div class="titlebt">
                                    录入教材</div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <div class="divcontent">
            <h2> 录入教材信息</h2>
            <div class="divtext">
                <table style="height: 300px; width: 350px;">
                    <tr>
                        <td class="style2">
                            <asp:Label ID="Label1" runat="server" Text="教材编号："></asp:Label>
                        </td>
                        <td colspan="2">
                            <asp:TextBox ID="TbxBookNumber" runat="server" CssClass="textbox"></asp:TextBox>
                            <asp:TextBoxWatermarkExtender ID="TbxBookNumber_TextBoxWatermarkExtender" runat="server"
                                Enabled="True" TargetControlID="TbxBookNumber" WatermarkText="请输入教材编号" >
                            </asp:TextBoxWatermarkExtender>
                        </td>
                        <td colspan="2">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TbxBookNumber"
                                ErrorMessage="请输入教材编号！" CssClass="WatermarkText"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            <asp:Label ID="Label2" runat="server" Text="教材名："></asp:Label>
                        </td>
                        <td colspan="2">
                            <asp:TextBox ID="TbxBookName" runat="server" CssClass="textbox"></asp:TextBox>
                            <asp:TextBoxWatermarkExtender ID="TbxBookName_TextBoxWatermarkExtender" runat="server"
                                Enabled="True" TargetControlID="TbxBookName" WatermarkText="请输入教材明">
                            </asp:TextBoxWatermarkExtender>
                        </td>
                        <td colspan="2">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TbxBookName"
                                ErrorMessage="请输入教材名！" CssClass="WatermarkText"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            <asp:Label ID="Label3" runat="server" Text="作者："></asp:Label>
                        </td>
                        <td colspan="2">
                            <asp:TextBox ID="TbxBookAuthor" runat="server" CssClass="textbox"></asp:TextBox>
                            <asp:TextBoxWatermarkExtender ID="TbxBookAuthor_TextBoxWatermarkExtender" runat="server"
                                Enabled="True" TargetControlID="TbxBookAuthor" WatermarkText="请输入作者名">
                            </asp:TextBoxWatermarkExtender>
                        </td>
                        <td colspan="2">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TbxBookAuthor"
                                ErrorMessage="请输入作者！" CssClass="WatermarkText"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            <asp:Label ID="Label4" runat="server" Text="出版时间："></asp:Label>
                        </td>
                        <td colspan="2">
                            <asp:TextBox ID="TbxBookPublishedTime" runat="server" CssClass="textbox"></asp:TextBox>
                            <asp:TextBoxWatermarkExtender ID="TbxBookPublishedTime_TextBoxWatermarkExtender"
                                runat="server" Enabled="True" TargetControlID="TbxBookPublishedTime" WatermarkText="请选择出版时间">
                            </asp:TextBoxWatermarkExtender>
                            <asp:CalendarExtender ID="TbxBookPublishedTime_CalendarExtender" runat="server" Enabled="True"
                                TargetControlID="TbxBookPublishedTime">
                            </asp:CalendarExtender>
                        </td>
                        <td colspan="2">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TbxBookPublishedTime"
                                ErrorMessage="请输入出版时间！" CssClass="WatermarkText"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            <asp:Label ID="Label5" runat="server" Text="出版社："></asp:Label>
                        </td>
                        <td colspan="2">
                            <asp:TextBox ID="TbxBookPublished" runat="server" CssClass="textbox"></asp:TextBox>
                            <asp:TextBoxWatermarkExtender ID="TbxBookPublished_TextBoxWatermarkExtender" runat="server"
                                Enabled="True" TargetControlID="TbxBookPublished" WatermarkText="请输入出版社">
                            </asp:TextBoxWatermarkExtender>
                        </td>
                        <td colspan="2">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TbxBookPublished"
                                ErrorMessage="请输入出版社！" CssClass="WatermarkText"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            <asp:Label ID="Label6" runat="server" Text="单价："></asp:Label>
                        </td>
                        <td colspan="2">
                            <asp:TextBox ID="TbxBookPrice" runat="server" CssClass="textbox"></asp:TextBox>
                            <asp:TextBoxWatermarkExtender ID="TbxBookPrice_TextBoxWatermarkExtender" runat="server"
                                Enabled="True" TargetControlID="TbxBookPrice" WatermarkText="请输入教材单价">
                            </asp:TextBoxWatermarkExtender>
                        </td>
                        <td colspan="2">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TbxBookPrice"
                                ErrorMessage="书本单价！" CssClass="WatermarkText"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style2">
                            <asp:Label ID="Label7" runat="server" Text="教材类别："></asp:Label>
                        </td>
                        <td colspan="2">
                            <asp:DropDownList ID="DrpBookType" runat="server" Height="20px" Width="149px" DataTextField="Name" >
                            </asp:DropDownList>
                        </td>
                        <td colspan="2">
                            &nbsp;
                        </td>
                    </tr>        
                </table>
                  <p style=" margin-left: 50px;">
                           <span style="float: left;"><asp:Button ID="Button2" runat="server" OnClick="Button2Click" Text="添加" CssClass="btnAdd" /></span> 
                       
                            <asp:Button ID="Button3" runat="server" Text="取消"  CssClass="btnCancle" />
                    </p>   
            </div>
             
              <div class="divimg">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server" OnDataBinding="Button1Click">
                <ContentTemplate>
                    <img alt="" src="" runat="server" id="img" style="height: 357px; width:270px" />
                </ContentTemplate>
            </asp:UpdatePanel>
                 <p class="upload_p" style="_width: 300px;">
                               <span style="font-size: 14px; padding-right: 10px;">上传：</span> <asp:FileUpload ID="FileUpload1" runat="server" />
                            </p>
                        
                           <p class="upload_p"><asp:Label ID="Label8" runat="server" Text="备注：" CssClass="lblRemark"></asp:Label>
                       
                            <asp:TextBox ID="TbxRemark" runat="server" Height="85px" TextMode="MultiLine" Width="225px" CssClass="txtMultiLine"></asp:TextBox>
                       </p> 
                   
                            <p style="margin-left: 40px; width: 60px;">
                                <asp:Button ID="Button1" runat="server" OnClick="Button1Click" Text="上传"  Width="60px" Height="25px"/>
                            </p>
            </div>
           
        </div>

       
    </div>
            </asp:Content>
